
document.addEventListener('DOMContentLoaded', function () {

    const DEVICEDEFAULTSIZE = 750;
    const HTMLDOM = document.querySelector("html");
    function onresize() {
        const ratio = Math.floor((document.documentElement.clientWidth / DEVICEDEFAULTSIZE) * 100);
        HTMLDOM.style.fontSize = `${ratio}px`;
    }

    window.addEventListener("resize", onresize);

    onresize();

});


